/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.citytsm.gateway.sdk.exception;

/**
 * SDK异常类
 */
public class PtcApiException extends Exception {

    private String errCode;
    private String errMsg;

    public PtcApiException() {
    }

    public PtcApiException(Exception e) {
        super(e);
    }

    public PtcApiException(String message, Throwable cause) {
        super(message, cause);
    }

    public PtcApiException(String message) {
        super(message);
    }

    public PtcApiException(Throwable cause) {
        super(cause);
    }

    public PtcApiException(String errCode, String errMsg) {
        super(errCode + ":" + errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return this.errCode;
    }

    public String getErrMsg() {
        return this.errMsg;
    }
}